package com.alibaba.webx.tutorial1.app1.web.screen.db;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.citrus.turbine.dataresolver.Param;
import com.alibaba.webx.tutorial1.app1.service.RoleService;
import com.alibaba.webx.tutorial1.app1.vo.Role;

public class delete {
	
	@Autowired
    private HttpServletResponse response;
	
	@Autowired
	private RoleService roleService;
	
	public Boolean execute(@Param("roleId") int roleId) throws Exception {
        return roleService.deleteRole(roleId);
    }
}
